<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title> Administracion de informes de paises</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/spacelab.css" %}">
        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/responsive.css" %}">
        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/misestilos.css" %}">
        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/menu_jquery.css" %}">

        {% load staticfiles %} <script type="text/javascript" src="{% static "js/jquery.js" %}"></script>
        {% load staticfiles %} <script type="text/javascript" src="{% static "js/menu_jquery.js" %}"></script>
    </head>
    <body>

        {% include "topmenu.html" %} <!-- Top menu -->

        <div class="container">
            <div class="row-fluid">

                {% include "sidebar.html" %} <!-- Side bar -->

                <div class="span8">
                    <div class="page-header">
                        <h4> Administracion de informes de paises de su region</h4>
                    </div>
                    <div>
                        <h4>Informes anteriores de:
                        <br />
                        </h4>
                        <table cellpadding="5px" border="1" width="100%">
                            <tr>
                                <th colspan="3" align="center" ><h3><img src="{{ STATIC_URL }}banderas{{pais.flag}}">&nbsp;&nbsp;{{ pais.name }}</h3></th>
                            </tr>
                            <tr>
                                <th align="center" colspan="2" >Periodo</th>
                                <th align="center" colspan="2">Opciones</th>
                            </tr>
                            {% for informe in informes_paises %}
                            <tr>
                                <td align="center" >{{ informe.fecha_inicio | date:" d/m/Y" }} </td>
                                <td align="center" >{{ informe.fecha_fin | date:" d/m/Y"}} </td>
                                <td align="center" colspan="2"><a class="btn btn-primary" href=/plataforma/ver_informes_pais/{{informe.id}}>Ver</a></td>
                            </tr>
                            {% endfor%}
                        </table>

                    </div>
                </div>
            </div><!-- row fluid -->

            {% include "footer.html" %} <!-- Footer -->
        </div>
        <!-- container -->

        <!-- JS files -->
        {% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap.js" %}"></script>
        {% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap-formhelpers-countries.js" %}"></script>
        {% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap-formhelpers-countries-US.js" %}"></script>

    </body>
</html>